home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / source / snip9503 / big_mall.h < prev    next >
Text File  |  1995-03-14  |  415b  |  16 lines

  1. /*
  2. ** void _far *BigMalloc(unsigned long num_elem, size_t size_elem)
  3. */
  4.  
  5. #ifdef MSDOS
  6.  #if defined(__TURBOC__) || defined(__ZTC__)
  7.   #ifdef __TURBOC__
  8.    #define _far far
  9.   #endif
  10.   #define BigMalloc(i,n) (void _far *)farmalloc(i*n)
  11.  #else                                          /* MSC, Watcom  */
  12.   #define BigMalloc(i,n) (void _far *)halloc(i,n)
  13. #else
  14.  #define BigMalloc(i,n) malloc(i*n)
  15. #endif 
  16.